const app = {
    state: {
        ffmpegCoreLoaded: false,
        processData: 0,
        videoId: 0,
        /**视频列表 */
        videoList: [{
            videoUrl: "",
            coverUrl: "",
            playStatus: false,
        }],
        /**当前选中的视频下标 */
        videoSelected: 0,
        /**字体列表 */
        fontList: [],
        /** 贴图列表  {url}*/
        imageList: [],
        /** 字幕文件列表 */
        subtitleList: [],
    },
    //里面定义方法，操作state方发
    mutations: {
        setLoaded(state, val) {
            state.ffmpegCoreLoaded = val;
        },
        setProcessData(state, val) {
            state.processData = val;
        },
        setVideoList(state, val) {
            state.videoList = val;
        },
        setVideoSelected(state, val) {
            state.videoSelected = val;
        },
        setFontList(state, val) {
            state.fontList = val;
        },
        setImageList(state, val) {
            state.imageList = val;
        },
        setSubtitleList(state, val) {
            state.subtitleList = val;
        },
    },
}
export default app